package com.flt.dao;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
import org.springframework.stereotype.Repository;

import com.flt.dao.model.Menu;
import com.ibatis.sqlmap.client.SqlMapClient;

@Repository
public class CustomMenuDAO extends SqlMapClientDaoSupport{

	@Resource
	private SqlMapClient sqlMapClient;
	
	@PostConstruct
	public void initSqlMapClient(){
		super.setSqlMapClient(sqlMapClient);
	}
	
	public Menu findMenuByMinId(){
		return (Menu) getSqlMapClientTemplate().queryForObject("cus_menu.find_menu_by_min_id");
	}
}
